<template>
    <view>
        <view class="smart-page-head">
            <view calss="smart-page-head-title">radio</view>
        </view>
        <view>
            <radio color="yellow" :checked="state" calss="miniRdio" @click="change"></radio>选中
        </view>
    </view>
</template>

<script>
    export default{
        data(){
            return {
                state: false
            }
        },
        methods:{
            change(){
                console.log('checking');
                if(this.state)
                    this.state = false
                else
                this.state = true
            }        
        }
    }
</script>